<?php
/**
 * @file			init.php
 * @Author			nic(nic-chen@qq.com)
 * @Create Date:	2011-04-03
 * @Brief			框架初始化文件
 */
require_once SYSPATH . 'cfg.php';
require_once ROOTPATH . 'config.php';
require_once SYSPATH . 'core.php';
//----------------------------------------------------------------------
/// 初始化全局数据
$GLOBALS[V_GLOBAL_NAME] = array();
$GLOBALS[V_GLOBAL_NAME]['TPL'] 	= array();
$GLOBALS[V_GLOBAL_NAME]['LANG'] = array();
$GLOBALS[V_GLOBAL_NAME]['STATIC_STORE'] = array();

/// 初始化可通过 V('-:****'); 访问的部分变量
$GLOBALS[V_CFG_GLOBAL_NAME]['userConfig']	= array();
$GLOBALS[V_CFG_GLOBAL_NAME]['sysConfig']	= array();
$GLOBALS[V_CFG_GLOBAL_NAME]['session']		= array();
$GLOBALS[V_CFG_GLOBAL_NAME]['siteInfo']		= array('site_name'=>'Nosite', 'site_uid'=>'','site_uname'=>'','reg_url'=>'', 'login_url'=>'');

//----------------------------------------------------------------------
if (defined('IS_SESSION_START') && IS_SESSION_START ){
	session_start();
}
//----------------------------------------------------------------------